package com.tpu.actionclasses;
import org.apache.tapestry.annotations.InjectObject;
import org.apache.tapestry.event.PageEvent;
import org.apache.tapestry.html.BasePage;
import org.hibernate.mapping.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;

import com.tpu.daoclasses.SessionOwner;
public abstract class AfishaPlacen extends BasePage{
	
	public abstract void setShowPlaceid(String showplaceid);
	private List customerList;
	//public abstract Customer getCurrentCustomer();
	@InjectObject("service:com.tpu.daoclasses.SessionOwner")
	public abstract SessionOwner getSessionOwner();
	public void pageBeginRender(PageEvent event) {
	Session session = getSessionOwner().getSession();
	Transaction tx = session.beginTransaction();
	try {
	Query query = session.createQuery("select c from Customer as c");
	//customerList = query.list();
	tx.commit();
	} catch (RuntimeException e) {	

	}
}
	}